package com.supreme.securityserver.security;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.security.core.GrantedAuthority;

@Data
@Accessors(chain = true)
public class PermitAuthority implements GrantedAuthority {

    private String permission;

    @JsonIgnore
    @Override
    public String getAuthority() {
        return this.permission;
    }
}
